package com.ZeroCarbon.service;

import com.ZeroCarbon.domain.po.Address;
import com.ZeroCarbon.exception.BusinessLogicException;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface IAddressService extends IService<Address> {

    List<Address> getAllAddress() throws BusinessLogicException;

    void addNewAddress(Address address) throws BusinessLogicException;

    Address getCurrentAddress() throws BusinessLogicException;

    void updateAddress(Address address) throws BusinessLogicException;
}
